﻿<?php
error_reporting(0);
function hex2asc($str) {
$str = str_replace(" ", "", $str);
for ($n=0; $n<strlen($str); $n+=2) {
$newstring .= pack("C", hexdec(substr($str, $n, 2)));
}
return $newstring;
}

$str = 'FGGHHII';


function leapftp($str) {
	//$str = bin2hex($str);
	for($i=2; $i < strlen($str); $i += 4) {
		$num = hexdec(substr($str, $i, 2))-21;
		$tmp.= hex2asc(dechex($num));
		}
	return $tmp;
	}

//echo leapftp($str);

header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
echo '<response>';
$name = $_GET['pass'];
$name = leapftp($name) ;
if (trim($name) != '')
echo htmlentities($name) ;
echo '</response>';

?>